package cn.go.buster.launcher.api;

/**
 * @author logcat
 * @date 2020/07/20 13:00
 * An interface for event that how to post.
 */
public interface IPoster {


    /**
     * Register current node.
     * @param obj
     */
    void register(Object obj);


    /**
     * Unregister current node.
     * @param obj
     */
    void unRegister(Object obj);



    /**
     * Post an event with a tag.
     * @param tag
     */
    void post(String tag);


    /**
     * Post an event with a tag and some parameters.
     * @param tag
     * @param params
     */
    void post(String tag , Object... params);
}
